<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:87:"/home/wwwroot/oa.besttricycle.local/public/../application/cdyoa/view/orders/detail.html";i:1487991876;s:80:"/home/wwwroot/oa.besttricycle.local/public/../application/cdyoa/view/layout.html";i:1487991876;s:85:"/home/wwwroot/oa.besttricycle.local/public/../application/cdyoa/view/layout/head.html";i:1487991876;s:85:"/home/wwwroot/oa.besttricycle.local/public/../application/cdyoa/view/layout/foot.html";i:1487991876;}*/ ?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/vendor/html5.js"></script>
<script type="text/javascript" src="/vendor/respond.min.js"></script>
<script type="text/javascript" src="/vendor/PIE_IE678.js"></script>
<![endif]-->
<!-- h-ui框架 -->
<link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/vendor/Hui-iconfont/1.0.8/iconfont.css" />

<!-- h-ui后台样式 -->
<link rel="stylesheet" type="text/css" href="/static/admin/skin/default/skin.css"/>
<link rel="stylesheet" type="text/css" href="/static/admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="/vendor/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->

<!-- layui -->
<link rel="stylesheet" type="text/css" href="/vendor/layui/css/layui.css" />

<!-- jquery -->
<script type="text/javascript" src="/vendor/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/static/admin/js/H-ui.js"></script>

<!-- iphone开关 -->
<link rel="stylesheet" type="text/css" href="/vendor/bootstrap-Switch/bootstrapSwitch.css" />
<script language="javascript" src="/vendor/bootstrap-Switch/bootstrapSwitch.js"></script>

<!-- 编辑器插件 -->
<link rel="stylesheet" href="/vendor/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="/vendor/kindeditor/kindeditor-all-min.js"></script>

<!-- loading插件 start -->
<script type="text/javascript" src="/vendor/jquery.ShowLoading/1.0/jquery.ShowLoading.js"></script>
<link href="/vendor/jquery.ShowLoading/1.0/jquery.ShowLoading.css" rel="stylesheet">
<!-- loading插件 end -->
<style>
table .Hui-iconfont{font-size:20px;}
table td a.ml-5{text-decoration:none;}
#com_body .bgtr td{color:red;}
</style>
<title>内页框架</title>
</head>
<body>
<?php if(isset($nav)):?>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 
	首页 
	<span class="c-gray en">&gt;</span> 
	<?php echo isset($nav[0])? $nav[0] : "未定义";?> 
	<span class="c-gray en">&gt;</span> 
	<?php echo isset($nav[1])? $nav[1] : "未定义";?>
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
	<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<?php endif;?>
	<div class="page-container">
<style>
p{line-height:30px;}
.tabBar span.currents {
    background-color: #222;
    color: #fff;
}
</style>
	<p class="f-20 text-success">
		<?php echo $info['order_no']; ?> [<?php echo $info['title']; ?>]
	</p><br>
	<div class="panel panel-default">
		<div class="panel-header">计划详情</div>
		<div class="panel-body">
				<div class="row cl">
						<div class="col-xs-12 col-sm-6">
							<p><span>状态：</span><?php echo c('type.orders_status',$info['status']); ?> [<?php echo $info['action_note']; ?>]</p>
							<p><span>计划编号：</span><?php echo $info['order_no']; ?></p>
							<p><span>合同编号：</span><?php echo $info['contract_no']; ?></p>
							<p><span>计划标题：</span><?php echo $info['title']; ?></p>
							<p><span>计划内容：</span>
							<style>
								#content img{max-width:700px;}
							</style>
							<div id="content" style="overflow:hidden;"><?php echo $info['content']; ?></div></p>
							<p><span>附件：</span>
							<?php echo com_format_a(attach($info['attach'])); ?>
							</p>
							<p>
							<?php if($info['status']==3): ?>
								已完结
							<?php else: ?>
							<a title="审核计划" class="btn btn-primary radius" onclick="c_action(this)" href="javascript:;" _ptitle="审核计划" _width="600" _height="400" _confirm="" _url="<?php echo url('shenhe/orders','id='.$info['id']); ?>" _checkurl="" _post="[]">
								<i class="Hui-iconfont Hui-iconfont-manage"></i>
								审核计划
							</a>
							<?php endif; ?>
							</p>
						</div>
						<div class="col-xs-12 col-sm-6">
							<p><span>是否指定代货：</span><?php echo c("type.is_zd",$info['is_zd']); ?></p>
							<p><span>售价：</span><?php echo number_format($info['sale_price'],2); ?></p>
							<p><span>FOB：</span><?php echo number_format($info['fob'],2); ?></p>
							<p><span>海运价格：</span><?php echo number_format($info['haiyun'],2); ?></p>
							<hr>
							<p>盈亏：</p>
							<p>收款：<span style="color:#5eb95e;"><?php echo number_format($zshou,2); ?></span></p>
							<p>退税：<span style="color:#5eb95e;"><?php echo number_format($ztui,2); ?></span></p>
							<p>直材：<span style="color:#f37b1d;"><?php echo number_format($zzc,2); ?></span></p>
							<p>报销：<span style="color:#f37b1d;"><?php echo number_format($zbx,2); ?></span></p>
							<hr>
							<p>盈亏：<?php echo number_format($zlr,2); ?></p>
						</div>
					</div>
		</div>
	</div>
	<br>
	<br>
	
	<div class="row cl">
		<div class="col-xs-12 col-sm-6">
			<div class="panel panel-default">
				<div class="panel-header">收入</div>
				<div class="panel-body">
				
					<div id="tab_demo1" class="HuiTab">
					  <div class="tabBar cl"><span>收款</span><span>退税</span></div>
					  <div class="tabCon">
					  			<table class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
										<tr>
											<th width="80">ID</th>
											<th>录入人</th>
											<th>收款时间</th>
											<th>币种</th>
											<th>收款金额</th>
											<th>汇率</th>
											<th>人民币</th>
											<th>状态</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<?php if(is_array($shou) || $shou instanceof \think\Collection): $i = 0; $__LIST__ = $shou;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
										<tr>
											<td><?php echo $v['id']; ?></td>
											<td><?php echo $v['lname']; ?></td>
											<td><?php echo com_format_time($v['shou_time']); ?></td>
											<td><?php echo c("type.inshou_type",$v['type']); ?></td>
											<td><?php echo number_format($v['money'],2); ?></td>
											<td><?php echo $v['rate']; ?></td>
											<td><?php echo number_format($v['rmb'],2); ?></td>
											<td><?php echo c("type.inshou_status",$v['status']); ?></td>
											<td>
											<?php if($v['status']==1): ?>
												<?php echo com_page(['ico'=>'shenhe-tongguo','title'=>'审核通过','url'=>url('shenhe/tshou'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea']); ?>
												<?php echo com_page(['ico'=>'shenhe-butongguo2','title'=>'审核驳回','url'=>url('shenhe/bshou'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea']); endif; ?>
											</td>
										</tr>
										<?php endforeach; endif; else: echo "" ;endif; ?>
									</tbody>
								</table>
					  </div>
					  <div class="tabCon">
					  			<table class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
										<tr>
											<th width="80">ID</th>
											<th>录入人</th>
											<th>退税金额</th>
											<th>状态</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<?php if(is_array($tui) || $tui instanceof \think\Collection): $i = 0; $__LIST__ = $tui;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
										<tr>
											<td><?php echo $v['id']; ?></td>
											<td><?php echo $v['lname']; ?></td>
											<td><?php echo number_format($v['rmb'],2); ?></td>
											<td><?php echo c("type.intui_status",$v['status']); ?></td>
											<td>
											<?php if($v['status']==0): ?>
												<?php echo com_page(['ico'=>'shenhe-tongguo','title'=>'审核通过','url'=>url('shenhe/ttui'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea']); ?>
												<?php echo com_page(['ico'=>'shenhe-butongguo2','title'=>'审核驳回','url'=>url('shenhe/btui'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea']); endif; ?>
											</td>
										</tr>
										<?php endforeach; endif; else: echo "" ;endif; ?>
									</tbody>
								</table>
					  </div>
					</div>
				
				</div>
			</div>
		</div>
		<div class="col-xs-12 col-sm-6">
			<div class="panel panel-default">
				<div class="panel-header">支出</div>
				<div class="panel-body">
				
					<div id="tab_demo2" class="HuiTab">
					  <div class="tabBar cl"><span>直材</span><span>报销</span></div>
					  <div class="tabCon">
					  			<table class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
										<tr>
											<th width="80">ID</th>
											<th>录入人</th>
											<th>直材名称</th>
											<th>直材数量</th>
											<th>直材金额</th>
											<th>状态</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<?php if(is_array($zc) || $zc instanceof \think\Collection): $i = 0; $__LIST__ = $zc;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
										<tr>
											<td><?php echo $v['id']; ?></td>
											<td><?php echo $v['lname']; ?></td>
											<td><?php echo $v['title']; ?></td>
											<td><?php echo $v['nums']; ?></td>
											<td><?php echo number_format($v['rmb'],2); ?></td>
											<td><?php echo c("type.outzc_status",$v['status']); ?></td>
											<td>
											<?php if($v['status']==0): ?>
												<?php echo com_page(['ico'=>'shenhe-tongguo','title'=>'审核通过','url'=>url('shenhe/tzc'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea']); ?>
												<?php echo com_page(['ico'=>'shenhe-butongguo2','title'=>'审核驳回','url'=>url('shenhe/bzc'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea']); endif; ?>
											</td>
										</tr>
										<?php endforeach; endif; else: echo "" ;endif; ?>
									</tbody>
								</table>
					  </div>
					  <div class="tabCon">
					  
					  			<table class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
										<tr>
											<th width="80">ID</th>
											<th>录入人</th>
											<th>报销人姓名</th>
											<th>报销科目</th>
											<th>报销金额</th>
											<th>报销内容</th>
										</tr>
									</thead>
									<tbody>
										<?php if(is_array($bx) || $bx instanceof \think\Collection): $i = 0; $__LIST__ = $bx;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
										<tr>
											<td><?php echo $v['id']; ?></td>
											<td><?php echo $v['lname']; ?></td>
											<td><?php echo $v['name']; ?></td>
											<td>
											<?php $kemu = \app\cdyoa\model\Kemu::lists();echo $kemu[$v['type']]; ?>
											</td>
											<td><?php echo number_format($v['money'],2); ?></td>
											<td><?php echo com_substr(strip_tags($v['content']),20); ?></td>
										</tr>
										<?php endforeach; endif; else: echo "" ;endif; ?>
									</tbody>
								</table>
					  </div>
					</div>
				
				</div>
			</div>
		</div>
	</div>

</div>
<script>
$(function(){
	$.Huitab("#tab_demo1 .tabBar span","#tab_demo1 .tabCon","currents","click","0");
	$.Huitab("#tab_demo2 .tabBar span","#tab_demo2 .tabCon","currents","click","0");
});
</script>
</body>
<script type="text/javascript" src="/vendor/layui/layui.js"></script>
<script type="text/javascript" src="/vendor/layui/lay/dest/layui.all.js"></script>   
<script type="text/javascript" src="/vendor/cfunction.js"></script>
</html>